﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;

namespace Solution.Data
{
    public class UserDAC
    {
        SolutionEntities context = SolutionEntities.Context;
        public List<User> User_GetByTop(string Top, string Where, string Ord)
        {
            var list = context.User_GetByTop(Top, Where, Ord);
            return list.ToList();
        }

        public void User_Insert(User user)
        {
            context.User_Insert(user.Name, user.UserName, user.Password, user.Code, user.Phone, user.Email, user.Admin);
        }

    }
}
